home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / TCL1 / MIDI_MAN / CMIDIOUT.H < prev    next >
Text File  |  1992-03-07  |  1KB  |  42 lines

  1. //--- CMIDIOutputPort.h -------------------------------------------------------
  2. // Copyright ⌐ Paul Ferguson, 1990, 1991, 1992.  All rights reserved.
  3. //
  4. //
  5. // Description:
  6. //    Refer to the CMIDI Programmer's Manual for a complete desciption of
  7. //    these objects and methods.
  8. //    For use with THINK C 5.0 and the THINK Class Library.
  9. //
  10. //----------------------------------------------------------------------------
  11.  
  12. #pragma once
  13. #include "CMIDIDataPort.h"
  14. #include "CMIDITimePort.h"
  15.  
  16. class CMIDIOutputPort : public CMIDIDataPort
  17. {
  18. public:
  19.  
  20.             OSErr    IMIDIOutputPort(
  21.                         StringPtr        theName,         // Pascal format, 31 char max
  22.                         OSType            thePortID,
  23.                         Boolean            theVisibleFlag,
  24.                         CMIDITimePort *    theTimePort,
  25.                         long            theOffset);
  26.     virtual    OSErr    WritePacket(MIDIPacketPtr theMIDIPacket);
  27.     virtual    OSErr    Write(char * theData, short theDataLen);
  28.     virtual    OSErr    WriteTS(
  29.                         char *            theData,
  30.                         short            theDataLen,
  31.                         long            theTimeStamp);
  32.  
  33. private:
  34.  
  35.     virtual    OSErr    DoMIDIWrite(
  36.                         char *            theData,
  37.                         short            theDataLen,
  38.                         unsigned char    theFlags,
  39.                         long            theTimeStamp);
  40. };
  41.  
  42. // end of CMIDIOutputPort.h